package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 一个教学计划，可能在多个班年级出现
 * @author Administrator
 *
 */
@Entity
@Table(name = "sys_learnplant_class")
public class Sys_LearnPlant_Class extends AllId implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Sys_Class sys_Class;
	
	private Sys_LearnPlant sys_LearnPlant;
	
	private String state;//1未上，0表示无效，2表示 已上

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_Class getSys_Class() {
		return sys_Class;
	}

	public void setSys_Class(Sys_Class sys_Class) {
		this.sys_Class = sys_Class;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_LearnPlant getSys_LearnPlant() {
		return sys_LearnPlant;
	}

	public void setSys_LearnPlant(Sys_LearnPlant sys_LearnPlant) {
		this.sys_LearnPlant = sys_LearnPlant;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}
